﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String title = (String) session.getAttribute("title");
	String bg = (String) session.getAttribute("bg");
	String androidurl = (String) session.getAttribute("androidurl");
	String iosurl = (String) session.getAttribute("iosurl");
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${title}下载平台</title>

<!-- Stylesheets -->
<link type="text/css" href="<%=basePath%>bootstrap/css/bootstrap.css"
	rel="stylesheet">

<link type="text/css"
	href="<%=basePath%>icons/font-awesome/css/font-awesome.css"
	rel="stylesheet">
<link type="text/css" href="<%=basePath%>icons/rondo/style.css"
	rel="stylesheet">
<link type="text/css" href="<%=basePath%>css/theme.css" rel="stylesheet">
</head>

<body>
	<img src="${bg}" style="width:100%;">
	<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

img {
	max-width: 100%;
	height: auto;
}

.test {
	height: 600px;
	max-width: 600px;
	font-size: 40px;
}
</style>
	<script type="text/javascript">
		function is_weixin() {
			var ua = navigator.userAgent.toLowerCase();
			if (ua.match(/MicroMessenger/i) == "micromessenger") {
				return true;
			} else {
				return false;
			}
		}
		var isWeixin = is_weixin();
		var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
		function loadHtml() {
			var div = document.createElement('div');
			div.id = 'weixin-tip';
			div.innerHTML = '<p><img src="<%=basePath%>images/live_weixin.png" alt="微信打开"/></p>';
			document.body.appendChild(div);
		}
	
		function loadStyleText(cssText) {
			var style = document.createElement('style');
			style.rel = 'stylesheet';
			style.type = 'text/css';
			try {
				style.appendChild(document.createTextNode(cssText));
			} catch (e) {
				style.styleSheet.cssText = cssText; //ie9以下
			}
			var head = document.getElementsByTagName("head")[0]; //head标签之间加上style样式
			head.appendChild(style);
		}
		var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
		if (isWeixin) {
			loadHtml();
			loadStyleText(cssText);
		}
	</script>


	<div class="jumper" id="jump0"></div>
	<script src="<%=basePath%>scripts/jquery-1.10.2.min.js"></script>
	<script src="<%=basePath%>bootstrap/js/bootstrap.min.js"></script>
	<script src="<%=basePath%>scripts/jquery.smooth-scroll.min.js"></script>
	<script src="<%=basePath%>scripts/mixitup/jquery.mixitup.min.js"></script>
	<script src="<%=basePath%>scripts/theme.js"></script>
	<script>
		$('.nav-tabs a').click(function(e) {
			e.preventDefault();
			$(this).tab('show');
		});
		$(function() {
			if (navigator.platform == "iPhone") {
				location.href = "${iosurl}";
			} else {
				location.href = "${androidurl}";
			}
		});
	</script>

</body>